

new Vue({
    el: '#app',
    data: function () {
        return {
            visible: false,
            isCollapse: false,
            opened: false,
            isActive: false,
        }
    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        },
        sidebarHide(){
            $(".sidebar-container").addClass("sidebar-hide");
            alert("sidebarHide");
        },
        sidebarOpen(){
            $(".sidebar-container").removeClass("sidebar-hide");
            alert("sidebarOpen");
        },
        toggleSideBar(){
            alert("togglesidebar");
        },
        sideBar(){
            alert("sidebar");
        },
        toggleClick(){
            this.isActive = !this.isActive;
            this.isCollapse=!this.isCollapse;
        },
        handleCommand(command) {
            window.location.href="/home";
        },
        logout(){

        },
    }
})